<?php

class User_Form_Admin_Password extends Form
{
	function init()
	{
		$this -> addChild('password', 'password', array(
			'label' => 'New password',
			'desc' => 'Minimum 6 characters length.',
			'rules' => array('password' => 'Not valid password')
		));

		$this -> addChild('password', 'password2', array(
			'label' => 'Confirm password',
			'rules' => array('password2')
		));

		$this -> addChild('group', 'buttons');

		$this -> buttons -> addChild('submit', '_submit') -> addChild('cancel', '_cancel');
	}

}
